package com.mzy.datepackage.M2021.Dec.tSeven;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author Ives
 * * @date 2021/12/28
 */
public class Demo2 {
  public static void main(String[] args) {
    ArrayList<String> list = new ArrayList<>();
    list.add("123");
    list.add("456");
    list.add("789");
    List<String> collect = list.stream().filter(e -> e.equals("123")).collect(Collectors.toList());
    System.out.println(collect);
  }
}
